import type { LmGuessInstance } from '@/types/component'
import { ref } from 'vue'

/** 猜你喜欢组合式函数封装 */
export const useGuessList = () => {
  //获取猜你喜欢组件实例
  const guessRef = ref<LmGuessInstance>()

  //滚动触底事件
  const onScrolltolower = () => {
    guessRef.value?.getMore()
  }
  return { guessRef, onScrolltolower }
}
